package com.lagou.edu.wwyan.web1.minicat;

public class LagouServlet extends HttpServlet{

    @Override
    public void doGet(Request request, Response response) throws Exception {
        System.out.println("=====================doGet========");

        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        String content = "<h1>LAGOU doGet</h1>";
        response.output(HttpProtocolUtil.getHttpResultString(200,content) );
    }
    @Override
    public void doPost(Request request, Response response) throws Exception {
        System.out.println("=====================doPost========");
        String content = "<h1>LAGOU doPost</h1>";
        response.output(HttpProtocolUtil.getHttpResultString(200,content) );
    }
}
